home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.3
/
Video Toaster v4.3.iso
/
4.2
/
arexx
/
cg
/
copyattrib.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-04-16
|
2KB
|
53 lines
/* CopyAttrib -- Save current char settings to rexx macro */
/* By Bob Caron ©1994 NewTek, Inc. */
call addlib(CG_AREXX,0)
outfile="Toaster:Arexx/CG/PasteAttrib.Rexx"
call req_bar("Copying Attributes...")
stype=0
if (~open(outfd,outfile,W)) then
call REQ_TELL("Can't open output:",outfile)
bordbotr=translate(GET_BORD(BOTR),","," ")
charrgba=translate(GET_CHAR(RGBA),","," ")
charbotr=translate(GET_CHAR(BOTR),","," ")
shadrgba=translate(GET_SHAD(TOPR),","," ")
bordrgba=translate(GET_BORD(TOPR),","," ")
bordprio=GET_BORD(PRIO)
if get_shad(PRIO)=0 then prio="B"
else prio="T"
if get_shad(type)="None" then stype=0
if get_shad(type)="Cast" then stype=2
if get_shad(type)="Drop" then stype=1
writeln(outfd,"/* PasteAttrib -- An Attribute Setter */")
writeln(outfd,"/* By A. Random User ©1994 NewTek, Inc. */")
writeln(outfd,"/* (Based on a program by Bob Caron.) */")
writeln(outfd,"")
writeln(outfd,"call addlib(CG_AREXX,0)")
writeln(outfd,"")
writeln(outfd,"CALL SET_CHAR(FILL,'"||get_char(fill)||"')")
writeln(outfd,"CALL SET_CHAR(BOTR,"||charbotr||")")
writeln(outfd,"CALL SET_CHAR(RGBA,"||charrgba||")")
writeln(outfd,"CALL SET_BORD(FILL,'"||get_bord(fill)||"')")
writeln(outfd,"CALL SET_BORD(BOTR,"||bordbotr||")")
writeln(outfd,"CALL SET_BORD(SIZE,"||left(get_bord(SIZE),1)||")")
writeln(outfd,"CALL SET_BORD(PRIO,"||bordprio||")")
writeln(outfd,"CALL SET_BORD(TOPR,"||bordrgba||")")
writeln(outfd,"CALL SET_SHAD(TYPE,"||stype||")")
writeln(outfd,"CALL SET_SHAD(SPOT,"||get_shad(SPOT)||")")
writeln(outfd,"CALL SET_SHAD(PRIO,"||prio||")")
writeln(outfd,"CALL SET_SHAD(SIZE,"||get_shad(SIZE)||")")
writeln(outfd,"CALL SET_SHAD(TOPR,"||shadrgba||")")
writeln(outfd,"CALL REMLIB('CG_AREXX')")
call close(outfd)
call REQ_TELL("Attributes Copied...")
call req_bar("ToasterCG")
call REMLIB(CG_AREXX)
exit